package oop.day02;

public class Student extends Person {
    String clazzName;
    String stuId;

    Student(){
        super();//默认存在
    }
    Student(String name, int age,String address,
            String clazzName, String stuId){
        /*super();
        this.name = name;
        this.age = age;
        this.address = address;*/
        super(name, age, address);//调用的是父类的有参构造
        this.clazzName = clazzName;
        this.stuId = stuId;
    }

    public void study(){
        System.out.println(this.name+"学习");
    }

}
